<html>
<head>
<script language="javascript">
location.replace("../index.php")

</script>
</head>
<body>
		 
	

<?php
$mail=$_POST["email"]; // email add reciver
$con = mysql_connect("localhost","appma" ,"database");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
	mysql_select_db("162_appma", $con);
mysql_query("INSERT INTO newsletter (Email)
VALUES ('$mail')");
mysql_close($con);



?>
</body>
  </html>                    
                 
